/*              Copyright(c) 2008 Dave Sexton              *
 * http://www.codeplex.com/DocProject                      *
 * http://www.codeplex.com/DocProject/Project/License.aspx *
 ***********************************************************/
using System;
using System.Collections.Generic;
using System.Text;
using DaveSexton.DocProject.Sandcastle;

namespace DaveSexton.Sandcastle
{
	internal sealed class ApiReference
	{
		#region Public Properties
		public string TopicName
		{
			get
			{
				return element.TopicName;
			}
		}

		public string TopicId
		{
			get
			{
				return element.TopicId;
			}
		}
		#endregion

		#region Private / Protected
		private readonly ReflectionApiElement element;
		#endregion

		#region Constructors
		/// <summary>
		/// Constructs a new instance of the <see cref="ApiReference" /> class.
		/// </summary>
		public ApiReference(ReflectionApiElement element)
		{
			if (element == null)
				throw new ArgumentNullException("element");

			this.element = element;
		}
		#endregion

		#region Methods
		public override string ToString()
		{
			return element.TopicName;
		}
		#endregion
	}
}
